<?php 
require_once '../include.php';
$id=$_REQUEST['id'];

$row = findAdminById($id);

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>edit admin</title>
<link rel="stylesheet" href="styles/backstage.css">
</head>
<body>
<br/>
<h3>编辑管理员</h3>
<br/>
<center>
<form action="doAdminAction.php?act=editAdmin&id=<?php echo $id;?>" method="post">
<table class="table"  cellpadding="5" cellspacing="0" >
	<tr>
		<th align="right" >管理员名称</th>
		<td><input type="text" class="search" name="username" placeholder="<?php echo $row['username'];?>" value="<?php echo $row['username'];?>"/></td>
	</tr>
	<tr>
		<th align="right" >管理员密码</th>
		<td><input type="password" class="search" name="password"  value="<?php echo $row['password'];?>"/></td>
	</tr>
	<tr>
		<th align="right" >管理员邮箱</th>
		<td><input type="text" class="search" name="email" placeholder="<?php echo $row['email'];?>"value="<?php echo $row['email'];?>"/></td>
	</tr>
	<tr>
		<td colspan="2" align="center"><input type="submit" class="btn" value="编辑管理员"/></td>
	</tr>

</table>
</form>
</center>
</body>
</html>